//
//  MyAdModel.m
//  SharkEBook
//
//  Created by fxkj on 2021/1/29.
//

#import "MyAdModel.h"

@implementation MyAdModel
- (instancetype)initWithCoder:(NSCoder*)aDecoder
{
    if(self= [super init]) {
        
        self.cmurl = [aDecoder decodeObjectForKey:@"cmurl"];
        
        self.curl = [aDecoder decodeObjectForKey:@"curl"];
        
        self.deeplinkmurl = [aDecoder decodeObjectForKey:@"deeplinkmurl"];
        self.deeplinkurl = [aDecoder decodeObjectForKey:@"deeplinkurl"];
        self.imgUrl = [aDecoder decodeObjectForKey:@"imgUrl"];
        self.murl = [aDecoder decodeObjectForKey:@"murl"];
        self.imgData = [aDecoder decodeObjectForKey:@"imgData"];
    }
    
    return  self;
    
}

- (void)encodeWithCoder:(NSCoder*)aCoder

{
    [aCoder encodeObject:self.cmurl forKey:@"cmurl"];
    [aCoder encodeObject:self.curl forKey:@"curl"];
    [aCoder encodeObject:self.deeplinkmurl forKey:@"deeplinkmurl"];
    [aCoder encodeObject:self.deeplinkurl forKey:@"deeplinkurl"];
    [aCoder encodeObject:self.imgUrl forKey:@"imgUrl"];
    [aCoder encodeObject:self.murl forKey:@"murl"];
    [aCoder encodeObject:self.imgData forKey:@"imgData"];
    
}

@end
